#import "CPTDefinitions.h"
#import <UIKit/UIKit.h>

//新增修改=====1
@protocol CPLayerHostEvent

-(void)CPLayerHostEvent_touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)CPLayerHostEvent_touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)CPLayerHostEvent_touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
-(void)CPLayerHostEvent_touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;

@end
//============

@class CPTGraph;

@interface CPTGraphHostingView : UIView {
    @protected
    CPTGraph *hostedGraph;
    //新增修改=====2
	id delegete;
	//============
    
    BOOL collapsesLayers;
    BOOL allowPinchScaling;
    __cpt_weak id pinchGestureRecognizer;
}
//新增修改=====3
@property (assign) id <CPLayerHostEvent> delegete;
//============



@property (nonatomic, readwrite, retain) CPTGraph *hostedGraph;
@property (nonatomic, readwrite, assign) BOOL collapsesLayers;
@property (nonatomic, readwrite, assign) BOOL allowPinchScaling;

@end
